import request from '@/utils/request'

const dashboardApi = {
  getIndexStatisics: '/api/DATATJ//Get_IndexStatisics',
  getIndexStatisticsCYZX: '/api/DATATJ/getIndexStatisticsCYZX',
  Get_CYZXDate: '/api/DATATJ/Get_CYZXDate',

  getIndexCharts: '/api/DATATJ/getIndexStatistics',
  getIndexWorkList: '/api/Worklog/Get_IndexWorkList',
  getIndexProposerList: '/api/DATATJ//get_IndexProposerList',
  getDataBoard: '/api/DATATJ/Get_DataBoard',
  Get_YHlogin: '/api/DATATJ/Get_YHlogin',
}

export function getIndexStatisics(params) {
  return request({
    url: dashboardApi.getIndexStatisics,
    method: 'get',
    params,
  })
}

export function getIndexStatisticsCYZX(params) {
  return request({
    url: dashboardApi.getIndexStatisticsCYZX,
    method: 'get',
    params,
  })
}

export function Get_CYZXDate(params) {
  return request({
    url: dashboardApi.Get_CYZXDate,
    method: 'get',
    params,
  })
}

export function get_YHlogin(params) {
  return request({
    url: dashboardApi.Get_YHlogin,
    method: 'get',
    params,
  })
}

export function getIndexCharts(params) {
  return request({
    url: dashboardApi.getIndexCharts,
    method: 'get',
    params,
  })
}

export function getIndexWorkList(params) {
  return request({
    url: dashboardApi.getIndexWorkList,
    method: 'get',
    params,
  })
}

export function getIndexProposerList(params) {
  return request({
    url: dashboardApi.getIndexProposerList,
    method: 'get',
    params,
  })
}

export function getDataBoard(params) {
  return request({
    url: dashboardApi.getDataBoard,
    method: 'get',
    params,
  })
}
